package cn.iocoder.yudao.module.aiposter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;

@Validated
@Data
@ConfigurationProperties(prefix = "cw.poster")
@Component
public class PosterConfig {
    /**
     * HTTP 请求时，访问令牌的请求 Header
     */
    @NotEmpty(message = "文件上传路径不能为空")
    private String localUploadDir = "/tmp/cw_poster";

    @NotEmpty(message = "绘制URL不能为空")
    private String drawUrl = "http://localhost:3000/cw_draw";
}
